package 整数的输入输出;

import java.util.Scanner;

public class 整数的输入输出 {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		Scanner b = new Scanner(System.in);
		
		int x = 0, y = 0;
		
		x = a.nextInt() + b.nextInt();
		y = a.nextInt() - b.nextInt();
		
		System.out.print("x="+x+"\n"+"y="+y);
		
	}

}
